<template>
	<view class="content">
		<template v-if="data">
			<u-parse :content="data"></u-parse>
		</template>
		<template v-else>
			<view class="empty-area">{{ emptyPrompt }}</view>
		</template>
	</view>
</template>

<script>
	export default {
		props: {
			data: {
				type: String,
				default: ''
			},
			emptyPrompt: {
				type: String,
				default: '请输入内容'
			}
		},
		data() {
			return {
				
			}
		}
	}
</script>

<style lang="scss" scoped>
	.content {
		padding: 4px 8px;
		min-height: 80px;
	}
	
	.empty-area {
		color: #999;
		font-size: 14px;
	}
</style>